/**
 * Created by Zhang JiRen
 * @date 2022/4/6 0006
 */

// import api from "@/api";
import store from "@/store";
import user from "@/api/user";
export const initSetting = () => {
  user.info().then(res => {
    store.state.UserInfo = res.data;
    user.getrepswitch({ user_id: res.data.id }).then(res => {
      const status = res.data.status;
      if (!status) localStorage.removeItem("loginReport");
    });
  });
};
//   api.getSysTeamInfo().then(res => {
//     let obj = {};
//     res.data.data.forEach(e => {
//       obj = Object.assign(obj, { [e.menu_name]: e.value });
//     });
//     store.state.systemConfig = obj;
//   });
// };
